package nancal.mp.db.es.entity

import nancal.mp.db.mongo.ProductStatusEnum
import nancal.mp.db.mongo.base.shop.ProductSkuStockPrice
import nbcp.base.db.IdCodeName
import nbcp.base.db.IdName
import nbcp.base.db.KeyValueString
import nbcp.base.db.annotation.DbEntityGroup
import nbcp.base.db.annotation.DbName
import nbcp.base.model.BaseMarkEntity
import nbcp.myoql.db.comm.IkFieldDefine
import nbcp.myoql.db.es.base.IEsDocument

@DbName("product")
@DbEntityGroup("system")

@IkFieldDefine("name","slogan","detail","remark","skuDefines.key","skuDefines.value")
class ProductIndex : BaseMarkEntity(), IEsDocument {

    var name = ""
    var corp = IdName()

    var slogan = ""
    var brandPath = mutableListOf<IdCodeName>()
    var corpCategoryPath = mutableListOf<IdCodeName>()
    var categoryPath = mutableListOf<IdCodeName>()

    var detail = ""

    var remark = ""
    var status: ProductStatusEnum? = null
    var guidePrice = 0
    var skuDefines: MutableList<KeyValueString> = mutableListOf()

    var skuStockPrice: MutableList<ProductSkuStockPrice> = mutableListOf()
}